import("//llvm/utils/unittest/unittest.gni")

unittest("ToolingTests") {
  configs += [ "//llvm/utils/gn/build:clang_code" ]
  include_dirs = [ "." ]
  deps = [
    "//clang/lib/AST",
    "//clang/lib/ASTMatchers",
    "//clang/lib/Basic",
    "//clang/lib/Format",
    "//clang/lib/Frontend",
    "//clang/lib/Lex",
    "//clang/lib/Rewrite",
    "//clang/lib/Tooling",
    "//clang/lib/Tooling/Core",
    "//clang/lib/Tooling/DependencyScanning",
    "//clang/lib/Tooling/Refactoring",
    "//clang/lib/Tooling/Transformer",
    "//llvm/lib/Support",
    "//llvm/lib/Target:TargetsToBuild",
    "//llvm/lib/Testing/Support",
  ]
  sources = [
    "ASTSelectionTest.cpp",
    "CastExprTest.cpp",
    "CommentHandlerTest.cpp",
    "CompilationDatabaseTest.cpp",
    "DependencyScannerTest.cpp",
    "DiagnosticsYamlTest.cpp",
    "ExecutionTest.cpp",
    "FixItTest.cpp",
    "HeaderIncludesTest.cpp",
    "LexicallyOrderedRecursiveASTVisitorTest.cpp",
    "LookupTest.cpp",
    "QualTypeNamesTest.cpp",
    "RangeSelectorTest.cpp",
    "RecursiveASTVisitorTestDeclVisitor.cpp",
    "RecursiveASTVisitorTestPostOrderVisitor.cpp",
    "RecursiveASTVisitorTestTypeLocVisitor.cpp",
    "RecursiveASTVisitorTests/Attr.cpp",
    "RecursiveASTVisitorTests/CXXBoolLiteralExpr.cpp",
    "RecursiveASTVisitorTests/CXXMemberCall.cpp",
    "RecursiveASTVisitorTests/CXXMethodDecl.cpp",
    "RecursiveASTVisitorTests/CXXOperatorCallExprTraverser.cpp",
    "RecursiveASTVisitorTests/CallbacksBinaryOperator.cpp",
    "RecursiveASTVisitorTests/CallbacksCallExpr.cpp",
    "RecursiveASTVisitorTests/CallbacksCompoundAssignOperator.cpp",
    "RecursiveASTVisitorTests/CallbacksLeaf.cpp",
    "RecursiveASTVisitorTests/CallbacksUnaryOperator.cpp",
    "RecursiveASTVisitorTests/Class.cpp",
    "RecursiveASTVisitorTests/Concept.cpp",
    "RecursiveASTVisitorTests/ConstructExpr.cpp",
    "RecursiveASTVisitorTests/DeclRefExpr.cpp",
    "RecursiveASTVisitorTests/ImplicitCtor.cpp",
    "RecursiveASTVisitorTests/ImplicitCtorInitializer.cpp",
    "RecursiveASTVisitorTests/InitListExprPostOrder.cpp",
    "RecursiveASTVisitorTests/InitListExprPostOrderNoQueue.cpp",
    "RecursiveASTVisitorTests/InitListExprPreOrder.cpp",
    "RecursiveASTVisitorTests/InitListExprPreOrderNoQueue.cpp",
    "RecursiveASTVisitorTests/IntegerLiteral.cpp",
    "RecursiveASTVisitorTests/LambdaDefaultCapture.cpp",
    "RecursiveASTVisitorTests/LambdaExpr.cpp",
    "RecursiveASTVisitorTests/LambdaTemplateParams.cpp",
    "RecursiveASTVisitorTests/MemberPointerTypeLoc.cpp",
    "RecursiveASTVisitorTests/NestedNameSpecifiers.cpp",
    "RecursiveASTVisitorTests/ParenExpr.cpp",
    "RecursiveASTVisitorTests/TemplateArgumentLocTraverser.cpp",
    "RecursiveASTVisitorTests/TraversalScope.cpp",
    "RefactoringActionRulesTest.cpp",
    "RefactoringCallbacksTest.cpp",
    "RefactoringTest.cpp",
    "ReplacementsYamlTest.cpp",
    "RewriterTest.cpp",
    "SourceCodeBuildersTest.cpp",
    "SourceCodeTest.cpp",
    "StencilTest.cpp",
    "ToolingTest.cpp",
    "TransformerTest.cpp",
  ]
}
